{config_load file=test.conf section="setup"}
{include file="header.tpl" title=User Name=Modify}
<h1>Modify User</h1>
<hr />
<PRE>
<form method="post" name="modifing_user" action="">
	<table border="1">
		<tr>
			<td>Name:</td>
			<td><input type="text" name="name" value="{$name}" /></td>
		<tr>
		<tr>
			<td>Surname:</td>
			<td><input type="text" name="surname" value="{$surname}" /></td>
		<tr>
		<tr>
			<td>Faculty:</td>
			<td>{$faculty}</td>
		<tr>
		<tr>
			<td>Group:</td>
			<td>
				<select name="select_group">
					{section name = i loop = $groups}
						<option {if $group_id eq $group_ids[i]}select='selected'{/if} value="{$group_ids[i]}">{$groups[i]}</option>
					{/section}
				</select>
			</td>
		<tr>
		<tr>
			<td>Login:</td>
			<td>{$login}</td>
		<tr>
		<tr>
			<td>email:</td>
			<td>{$email}</td>
		<tr>
			<td><input type="checkbox" name="ch_pass"  />New Password:</td>
			<td><input type="text" name="new_password" id="new_pass" /><input type="hidden" name="id" value="{$id}" /></td>
		</tr>
		<tr>
			<td colspan="2" align="right"><input type="submit" name="modify_user" value="Modify" /></td>
		</tr>
	</table>
</form>
</PRE>
<hr />
<a href="modify_or_delete_user.php">back</a>

{include file="footer.tpl"}